package com.hxjy.aid;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;

import com.hxjy.constant.Constant;
import com.hxjy.page.Pager;

public class LoadPagerConstant {
	public static void loadPagerConstant(ServletContextEvent servletContextEvent){
		ServletContext application = servletContextEvent.getServletContext();
		Pager pager = new Pager();
		pager.setPageSize(Constant.MAX_PAGE_SIZE);
		pager.setPageNum(Constant.MAX_PAGE_NUM);
		application.setAttribute("pager", pager);
	}
}
